/**
 * record
 */

const seq = require('../seq')
const { STRING, DECIMAL, INTEGER } = require('../types')//sequelize的数据类型

const record = seq.define('record', {
    id: {
        type: INTEGER,
        primaryKey: true,
        allowNull: false,
        autoIncrement: true
    },
    openid: {
        type: STRING,
        comment: '微信openid'
    },
    age:{
        type: STRING,
        comment: '年龄是否满18岁'
    },
    manage: {
        type: STRING,
        comment: '是否零售商'
    },
    unit1: {
        type: STRING,
        comment: '知识点1'
    },
    unit2: {
        type: STRING,
        comment: '知识点2'
    },
    unit3: {
        type: STRING,
        comment: '知识点3'
    },
    customerCode: {
        type: STRING,
        comment: '客户代码',
    },
    area: {
        type: STRING,
        comment: '用户来自哪里'
    },
})

module.exports = record

